/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package facade;

import ejb.ClienteLocal;
import ejb.ProjetoLocal;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Vector;

/**
 *
 * @author Administrador
 */
public class ClienteFacade implements Serializable {

    public ClienteFacade(ClienteLocal clienteLocal) {
        projetoColletion = new Vector();
        id = clienteLocal.getId();
        Iterator it = clienteLocal.getProjetoCollection().iterator();
        for(;it.hasNext();){
            projetoColletion.add(new ProjetoFacade((ProjetoLocal) it.next()));
        }
    }

    public String getId() {
        return id;
    }

    public Vector getProjetoColletion() {
        return projetoColletion;
    }

    Vector projetoColletion;
    String id;
}
